The iOS 5 Developer's Cookbook: Expanded Electronic Edition: Essentials and Advanced Recipes for iOS Programmers (Developer's Library) by Erica Sadun

The iOS 5 Developer's Cookbook: Expanded Electronic Edition: Essentials and Advanced Recipes for iOS Programmers (Developer's Library) by Erica Sadun

Author:Erica Sadun [Sadun, Erica]
Language: eng
Format: epub
Publisher: Pearson Education
Published: 2012-02-21T22:00:00+00:00


// Add stars — initially assuming fixed width

float offsetCenter = WIDTH;

for (int i = 1; i <= 5; i++)

{

UIImageView *imageView = [[UIImageView alloc]

initWithFrame:CGRectMake(0.0f, 0.0f, WIDTH, WIDTH)];

imageView.image = OFF_ART;

imageView.center = CGPointMake(offsetCenter,

self.frame.size.height / 2.0f);

offsetCenter += WIDTH * 1.5f;

[self addSubview:imageView];

}

}

// Place on a contrasting background

self.backgroundColor =

[[UIColor blackColor] colorWithAlphaComponent:0.25f];

return self;

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.